package com.edou.WeChat.controller;

import com.edou.WeChat.form.WeChatUserInfoForm;
import com.edou.WeChat.service.IWeChatUserService;
import com.edou.base.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @author zhangyaofang
 * @create 2018-11-25 5:12 PM
 * @desc
 **/
@Controller("weChatUserController")
@Scope("prototype")
@RequestMapping("/weChatUser")
public class weChatUserController extends BaseController {

	@Autowired
	public IWeChatUserService weChatUserService;


	/**
	 * 新增预约信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/addWeChatUser", method = RequestMethod.POST)
	public ModelAndView add(@RequestBody WeChatUserInfoForm model, HttpServletRequest request, HttpServletResponse response, HttpSession session) {
		try {

			return ajaxJSON(Status.success, "true");
		}catch (Exception e){
			return ajaxJSON(Status.error,e.getMessage());
		}
	}



}
